package com.fruit;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Description: 调用商品服务接口
 * @Author: LJ
 * @Date: 2018/10/31 14:42
 * @version:
 */
//申请调用的服务名
@FeignClient(name = "PRODUCT")
public interface ProductClient {
    /**
     * 获取商品服务
     *
     * @return
     */
    //@RequestMapping(value = "/product/list" , method = RequestMethod.GET)
    @GetMapping("/product/list")
    String productGetList();

    @GetMapping("/product/listForOder")
    List<ProductInfoOutPut> listForOder();
}
